package com.indeep.user.common;

public enum StatusCode {
    SUCCESS(200, "操作成功"),
    BAD_REQUEST(400, "客户端语法错误"),
    LIMIT_RATE(400, "请求频率过快"),
    BIRTHDAY_FORMAT_WRONG(400, "生日格式校验失败"),
    INVALID_ACCESS_TOKEN(401, "访问令牌无效"),
    INVALID_APPS_ACCESS_TOKEN(401, "私域访问令牌无效"),
    INVALID_REFRESH_TOKEN(401, "刷新令牌无效"),
    IDENTITY_NOT_ALLOWED(401, "当前身份不允许执行此操作"),
    LOGIN_FAILED(401, "登录失败：用户名或密码错误"),
    NEED_AUTH(401, "需要进行权限认证"),
    TEL_WRONG_FORMAT(403, "电话号码格式错误"),
    CODE_VERIFICATION_FAILED(403, "验证码校验失败"),
    I_CODE_VERIFICATION_FAILED(403, "邀请码校验失败"),
    I_CODE_CUR_NUM_LACK(403, "邀请码剩余可邀请人数不足"),
    I_CODE_EXPIRED(403, "超过邀请码有效期"),
    POST_DELETE_FAILED(403, "删除帖子失败"),
    EMO_EXISTS(403, "表情包已存在"),
    BEYOND_MEMES(403, "超出表情包最大个数"),
    EMO_NOT_EXISTS(403, "表情包不存在"),
    MESSAGE_READ_FAILED(403, "无法读取别人的消息"),
    POST_DELETE_FAILED_OTHER(403, "删除帖子失败：无法删除他人的帖子"),
    POST_UPDATE_FAILED_OTHER(403, "无法设置别人帖子"),
    USER_BANDED(403, "您已被封禁"),
    POST_SEND_FAILED(403, "帖子发送失败"),
    ACTIVITY_SEND_FAILED(403, "发布活动失败"),
    POST_SEND_FAILED_OFFICIAL_COMMUNITY(403, "帖子发送失败：不能在官方社区发帖"),
    DRAFT_SAVE_FAILED(403, "保存草稿失败"),
    DRAFT_DELETE_FAILED(403, "删除草稿失败"),
    COMMENT_INSERT_FAILED(403, "评论失败"),
    COMMENT_DELETE_FAILED(403, "删除评论失败"),
    COMMENT_DELETE_FAILED_OTHER(403, "删除评论失败：无法删除他人的评论"),
    COLLECT_FAILED(403, "收藏失败"),
    COLLECT_CANCEL_FAILED(403, "取消收藏失败"),
    TRANSFER_FAILED(403, "单日限额50000"),
    USER_TRANSFER_FAILED(403, "提现失败"),
    SIGN_FAILED(403, "签名不正确"),
    CONCERN_COMMUNITY_FAILED(403, "加入社区失败"),
    NOT_EXISTS_COMMUNITY(403, "社区不存在"),
    UNCONCERN_COMMUNITY_FAILED(403, "取消加入社区失败"),
    PRESIDENT_COMMUNITY_REASON(403, "请写出你想成为社长的原因"),
    SUBMIT_COMMUNITY_FAILED(403, "请勿重复提交,等待审核"),
    BUILD_COMMUNITY_FAILED(403, "新建社区失败"),
    PRESIDENT_COMMUNITY_FAILED(403, "申请版主失败"),
    FOLLOW_FAILED(403, "关注失败"),
    UNFOLLOW_FAILED(403, "取消关注失败"),
    APPEAL_FAILED(403, "申诉失败"),
    REPORT_FAILED(403, "举报失败"),
    REMARK_FAILED(403, "设置备注失败"),
    QUERY_REMARK_FAILED(403, "查询备注失败"),
    WX_ORDER_FAILED(403, "商品下单失败"),
    LIKE_FAILED(403, "点赞失败"),
    UNLIKE_FAILED(403, "取消点赞失败"),
    ADD_BLACKLIST_FAILED(403, "加入黑名单失败"),
    REMOVE_BLACKLIST_FAILED(403, "移出黑名单失败"),
    UNSUBSCRIBE_FAILED(403, "账号注销失败"),
    CHANGE_TEL_FAILED(403, "账号注销失败"),
    TEL_REGISTERED(403, "该手机号已注册"),
    WX_BOUND(403, "此微信已被其他用户绑定"),
    WX_AUTH_FAIL(403, "微信认证失败"),
    NO_WX_AUTH(403, "当前账号还没有绑定微信"),
    S_LOGIN_FAILED(403, "私域登录失败"),
    WRONG_TYPE(403, "错误的消息类型"),
    POST_BAN(403, "您已被禁止发贴"),
    POST_COMMENT(403, "您已被禁止评论"),
    AUTHOR_PAY_ATTENTION(403, "作者关注的人才能评论"),
    PAY_ATTENTION_AUTHOR(403, "关注作者才能评论"),
    CLOSE_COMMENTS(403, "作者已关闭评论区"),
    MISSING_REQUIRED_PARAMETERS(403, "缺少必填参数"),
    MORE_MONEY(403, "提现金额溢出"),
    LESS_MONEY(403, "提现金额不能低于0.1"),
    DELETE_CONSTANT_FAILED(403, "删除常量失败"),
    ADD_CONSTANT_FAILED(403, "添加常量失败"),
    UPDATE_CONSTANT_FAILED(403, "更新常量失败"),
    WRONG_PRICE(403, "物品与价格不一致"),
    NOT_INTERVAL(403, "请确保价格在0.1到500之间"),
    ORDER_NOT_FIND(403, "没有此订单信息"),
    ORDER_ALREADY_REFUND(403, "此订单已退款"),
    DATA_NOT_YES(403, "收到数据有误"),
    SIGN_NOT_YES(403, "签名不一致"),
    NO_BUYER_STATUS(403, "不是购买状态"),
    NO_GOODS_MESSAGE(403, "物品不存在"),
    REFUND_FAIL(403, "退款失败"),
    REFUND_MONEY_MORE(403, "退款金额大于实付金额"),
    CREATE_GROUP_FAILED_ILLEGAL_INVITEE(403, "邀请的人不正确"),
    CREATE_GROUP_FAILED_INVITEE_TOO_LITTLE(403, "至少邀请2人加入群聊"),
    OVER_GROUP_MAX_NUM_LIMIT(403, "超过群聊最大人数限制"),
    DISBAND_GROUP_FAILED(403, "群聊解散失败"),
    KICK_OUT_GROUP_MEMBER_FAILED(403, "踢出群成员失败"),
    GROUP_STATUS_ABNORMAL(403, "群聊状态异常"),
    NOT_ALLOWED_OPERATION_ON_CURRENT_OBJECT(403, "不允许对当前对象进行此操作"),
    QUIT_GROUP_FAILED(403, "退出群聊失败"),
    UPDATE_GROUP_INFO_FAILED(403, "更改群聊信息失败"),
    UPDATE_PUSH_STATUS_FAILED(403, "更改免打扰状态失败"),
    JOIN_ACTIVITY_FAILED(403, "加入活动失败"),
    AUDIT_TODAY_EXIST(403, "今天已经审核过了"),
    NO_ACTIVITY_FEATURE(403, "当前社区未开通活动功能，请联系社区管理员"),
    IS_FRIEND(403, "已经是好友了，快去聊天吧"),
    ADD_SELF(403, "不能添加自己"),
    ILLEGAL_SPECIAL_TAG(403, "特殊标签不合法"),
    EXIST_TAG(403, "标签已存在"),
    NO_EXIST_TAG(403, "标签不存在"),
    STAFF_IS_FULL(403, "活动已满员"),
    STAFF_IS_END(403, "组局已截止"),
    MORE_ONR_HUNDRED(403, "文字最多100个"),
    UPLOAD_FAIL(403, "上传失败"),
    FTL_NOT_ONLINE(403, "文件传输客户端不在线"),
    COMMUNITY_NOT_EXIST(404, "社区不存在"),
    POST_NOT_EXIST(404, "帖子不存在"),
    USER_NOT_EXIST(404, "用户不存在"),
    VX_AUTH_NOT_EXIST(404, "微信认证信息不存在"),
    COMMENT_NOT_EXIST(404, "评论不存在"),
    TAG_NOT_EXIST(404, "话题不存在"),
    PRESIDENT_NOT_EXIST(404, "社长信息不存在"),
    ACTIVITY_NOT_FOUND(404, "活动找不到了~"),
    PUSHINGHAND_LESS_FOUND(404, "推手必须大于0~"),
    PUSHINGHAND_NOT_FOUND(404, "推手找不到了~"),
    IM_GROUP_NOT_FOUND(404, "群聊不存在"),
    MESSAGE_NOT_FOUND(404, "消息不存在"),
    CATEGORY_NOT_FOUND(404, "分类不存在"),
    FRIEND_NOT_FOUND(404, "好友不存在"),
    KEY_NOT_FOUND(404, "密钥不存在"),
    ILLEGAL_TASK_ID(406, "非法的任务ID"),
    CANNOT_SHIELD_SOMEONE(406, "拉黑的用户无效"),
    CANNOT_FOLLOW_SOMEONE(406, "关注的用户无效"),
    CONDITION_NOT_SATISFIED_GIFT(412, "领取条件不满足"),
    CONDITION_NOT_SATISFIED_TEL_UNVERIFIED(412, "请先验证原手机号"),
    REPETITIVE_OPERATION(412, "请勿重复操作"),
    INSUFFICIENT_GIFTS(412, "礼物不足"),
    IN_BLACKLIST(412, "您已被拉黑"),
    POST_DELETE_FAILED_BY_PRESIDENT(412, "帖子删除失败：达到社长每日删除帖子上限"),
    INTERNAL_SERVER_ERROR(500, "服务器内部错误"),
    USER_LATEST_ACTIVE_TIME_NOT_EXISTS(500, "服务器内部错误：用户最后活跃时间不存在"),
    MESSAGE_FAILED_TO_SEND(503, "短信发送失败"),
    LOGIN_MORE_FIVE(503, "账号存在被盗风险,请三小时后重新尝试登陆!"),
    WAIT_ONE_MINUTE(503, "请60秒后再次发送!"),
    MESSAGE_NOT_EMPTY(503, "请输入有效内容"),
    ;
    
    public final int code;
    public final String msg;
    
    StatusCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
